package inheritance;

public class TestExtend {
    public static void main(String[] args) {

//        Dog dog = new Dog();
//        dog.name = "小白";
//        dog.age = 16;
//        System.out.println(dog.age);
//        System.out.println(dog.name);
//        dog.sleep();
//        dog.eat();


        TestDemo1 testDemo1 = new TestDemo1();
        testDemo1.method();
    }
}
